package com.nutricia.common.api.info;

import java.util.List;

/**
 * 后台系统菜单数据
 *
 * @author: huangsheng
 * @date: 2017/10/23
 */
public class CmsMenuInfo {

    /**
     * 跳转路径
     */
    private String path;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 菜单图标
     */
    private String icon;

    /**
     * 组件名就是渲染出来的路由。 前端就是根据这个判断路由是否展示的。
     */
    private String component;
    /**
     * 二级菜单对象
     */
    private List<SubMenuInfo> children;

    public CmsMenuInfo() {
    }

    /**
     * Gets path.
     *
     * @return the path
     */
    public String getPath() {
        return path;
    }

    /**
     * Sets path.
     *
     * @param path the path
     */
    public void setPath(String path) {
        this.path = path;
    }

    /**
     * Gets name.
     *
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * Sets name.
     *
     * @param name the name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Gets icon.
     *
     * @return the icon
     */
    public String getIcon() {
        return icon;
    }

    /**
     * Sets icon.
     *
     * @param icon the icon
     */
    public void setIcon(String icon) {
        this.icon = icon;
    }

    /**
     * Gets children.
     *
     * @return the children
     */
    public List<SubMenuInfo> getChildren() {
        return children;
    }

    /**
     * Sets children.
     *
     * @param children the children
     */
    public void setChildren(List<SubMenuInfo> children) {
        this.children = children;
    }

    /**
     * Gets component.
     *
     * @return the component
     */
    public String getComponent() {
        return component;
    }

    /**
     * Sets component.
     *
     * @param component the component
     */
    public void setComponent(String component) {
        this.component = component;
    }
}
